trying to fix encoding problem with json data.