Escape newline characters in JSON string.

\n and \r are separately escaped.
Merge pull request #397 from mgmarino/multiline_strings

'kanso upload' should handle multi-line strings