Implemented and tested is_json_compatible and fix_json_compatible
functions, taking care of interpreting the \u escapes and checking the
validity of the Unicode code point they represent.