Fix #535 escape unicode characters in json