Fix charset in JsonFormatter tests