fixing locale for JSON based strings