unquote json only if needed (fixes decoding errors)