Escape the newline character in the PS1 line replacement

This may fix bug #69