JSON unicode fixes and running tests on invalid unicode JSON