Fix for UnicodeDecodeErrors in XML-RPC