Fix type casting bug in JSONGetter
Fix charset name when constructing a String in JSONGetter