Adding logging when invalid json is sent.

- Also suppressing debug logging for tests.
Cleaning up JsonUtil and removing hardcodes unicode sequence.