fix incorrect usage of XMLString::transcode, assumes strings NUL termianted