For example, a String containing the Unicode character 0x4 (ctrl-d), will be serialized, but when deserialization is attempted an Exception is thrown: "An invalid XML character (Unicode: 0x4) was found in the element content of the document"
Better might be to encode the String as a byte-array?
ISO characters will be written as hex entity now. Fixed in head revision.