Fixed a bug in which json_safe() would raise a ValueError
when passed unpaired unicode surrogates on Linux.
Style issue fixes
Merge pull request #3 from edx/fix/will/json-safe-unicode

json_safe() ValueError for unpaired unicode surrogates