fix JSON parser on some rare utf8 representations
This patch is provided by @hchaojie and should fix #252.
Merge pull request #316 from chrox/master

fix JSON parser on some rare utf8 representations