Escape \u2028 and \u2029 in JSON output.

Closes #2169.
Merge pull request #2195 from tomchristie/tomchristie-escape-u2028-u2029-json

Escape \u2028 and \u2029 in JSON output.