Replace line breaks with \n.