Escape newline chars within encoded string values.

If the raw json data has unescaped newline characters within a string value, escape them, allowing json_decode to parse the encoded data.