Fix character encoding issues in json