fix issue with escaping unicode strings for xmlrpc