{"action":"closed","issue":{"url":"https://api.github.com/repos/michaelrice/thunderhead/issues/33","labels_url":"https://api.github.com/repos/michaelrice/thunderhead/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/michaelrice/thunderhead/issues/33/comments","events_url":"https://api.github.com/repos/michaelrice/thunderhead/issues/33/events","html_url":"https://github.com/michaelrice/thunderhead/issues/33","id":71964940,"number":33,"title":"Create customer fails with: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)","user":{"login":"michaelrice","id":441148,"avatar_url":"https://avatars.githubusercontent.com/u/441148?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelrice","html_url":"https://github.com/michaelrice","followers_url":"https://api.github.com/users/michaelrice/followers","following_url":"https://api.github.com/users/michaelrice/following{/other_user}","gists_url":"https://api.github.com/users/michaelrice/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelrice/subscriptions","organizations_url":"https://api.github.com/users/michaelrice/orgs","repos_url":"https://api.github.com/users/michaelrice/repos","events_url":"https://api.github.com/users/michaelrice/events{/privacy}","received_events_url":"https://api.github.com/users/michaelrice/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/michaelrice/thunderhead/labels/In%20Progress","name":"In Progress","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T19:24:36Z","updated_at":"2015-04-29T20:21:40Z","closed_at":"2015-04-29T20:21:40Z","body":"When trying to create a customer the following happens in my app.\r\n```\r\n2015-04-22 21:06:50,166 - root - ERROR - An unexpected exception has happened trying to create customer: {'country': 'CH', 'moref': 'datacenter-5551212', 'postal_code': 'CH-8058 Z\\xc3\\x9cRICH-BLAH', 'name': '8675309'}\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/app.py\", line 111, in <module>\r\n    customers.create_customer(vcum_connection, customer)\r\n  File \"/root/Envs/my_app/lib/python2.7/site-packages/thunderhead/builder/customers.py\", line 130, in create_customer\r\n    customer_data = _build_customer_payload(customer)\r\n  File \"/root/Envs/my_app/lib/python2.7/site-packages/thunderhead/builder/customers.py\", line 105, in _build_customer_payload\r\n    return tostring(root)\r\n  File \"/usr/local/python2.7/lib/python2.7/xml/etree/ElementTree.py\", line 1126, in tostring\r\n    ElementTree(element).write(file, encoding, method=method)\r\n  File \"/usr/local/python2.7/lib/python2.7/xml/etree/ElementTree.py\", line 820, in write\r\n    serialize(write, self._root, encoding, qnames, namespaces)\r\n  File \"/usr/local/python2.7/lib/python2.7/xml/etree/ElementTree.py\", line 939, in _serialize_xml\r\n    _serialize_xml(write, e, encoding, qnames, None)\r\n  File \"/usr/local/python2.7/lib/python2.7/xml/etree/ElementTree.py\", line 937, in _serialize_xml\r\n    write(_escape_cdata(text, encoding))\r\n  File \"/usr/local/python2.7/lib/python2.7/xml/etree/ElementTree.py\", line 1073, in _escape_cdata\r\n    return text.encode(encoding, \"xmlcharrefreplace\")\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)\r\n```"}}