@Charred - I can’t say I know too much about XML encoding. The only encoding error I get is when I try to burn some video files to DVD. Sometimes I will get an error message that states something like there was an error during movie encoding.
Usually this has to do with the type of codec I have installed on my computer, and the format that I am transferring to. The codec is the specific algorithm for whatever format I am exporting to.
If I am transferring to a format that I don’t have installed on my computer, like MPEG-4 for example, then I get the error. To fix it I usually have to download the MPEG-4 codec from the Internet and try the export process once again.