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

Makes compiler output easier to handle by printing string literals in one line.