replace newlines with crlf here instead of escaping them in the template