Fix charset problem with json