Cook the string that's sent to the repl so that newlines don't mess it up.