Changed check for auto-json decoding to account for character sets.