fix of json response encoding