Quote newlines correctly