Fix bug where json with wrong encoding causes exception
Fix bug where json with wrong encoding causes exception
Merge pull request #50 from webfanatic/bug_0049

Bug 0049