Convert locale specific decimal point to . for JSON and vice versa