Allow \r to precede \n for newlines.