[MOD] Escape newline characters in Str#toString().
Merge pull request #911 from LeoWoerteler/one-line-str

[MOD] Escape newline characters in Str#toString().