{"action":"opened","issue":{"url":"https://api.github.com/repos/robinedwards/neomodel/issues/198","repository_url":"https://api.github.com/repos/robinedwards/neomodel","labels_url":"https://api.github.com/repos/robinedwards/neomodel/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/robinedwards/neomodel/issues/198/comments","events_url":"https://api.github.com/repos/robinedwards/neomodel/issues/198/events","html_url":"https://github.com/robinedwards/neomodel/issues/198","id":130835016,"number":198,"title":"'ascii' codec can't decode byte","user":{"login":"petrykpjatochkin","id":4765088,"avatar_url":"https://avatars.githubusercontent.com/u/4765088?v=3","gravatar_id":"","url":"https://api.github.com/users/petrykpjatochkin","html_url":"https://github.com/petrykpjatochkin","followers_url":"https://api.github.com/users/petrykpjatochkin/followers","following_url":"https://api.github.com/users/petrykpjatochkin/following{/other_user}","gists_url":"https://api.github.com/users/petrykpjatochkin/gists{/gist_id}","starred_url":"https://api.github.com/users/petrykpjatochkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrykpjatochkin/subscriptions","organizations_url":"https://api.github.com/users/petrykpjatochkin/orgs","repos_url":"https://api.github.com/users/petrykpjatochkin/repos","events_url":"https://api.github.com/users/petrykpjatochkin/events{/privacy}","received_events_url":"https://api.github.com/users/petrykpjatochkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-02T22:12:33Z","updated_at":"2016-02-02T22:12:33Z","closed_at":null,"body":"I got this error when I was trying to create object with non ascii string field\r\n\r\nthere are the fix:\r\n\r\n```\r\ndiff --git a/neomodel/properties.py b/neomodel/properties.py\r\nindex 2c93b93..c781f39 100644\r\n--- a/neomodel/properties.py\r\n+++ b/neomodel/properties.py\r\n@@ -168,7 +168,7 @@ class StringProperty(Property):\r\n             raise ValueError(\"Invalid choice {} not in {}\".format(\r\n                 value, ','.join(self.choice_map.keys())))\r\n \r\n-        return unicode(value)\r\n+        return unicode(value, 'utf-8')\r\n \r\n     def default_value(self):\r\n         return unicode(super(StringProperty, self).default_value())\r\n```\r\n"}}