Escape literal \n that appear in text.

We want to be able to copy text that contains literal \n characters (two
characters) without them being interpreted as a single newline.