Normalize the newline characters of a string to `\\n`