string:convert-to-external-line-endings
builtin-function
(string:convert-to-external-line-endings str)
On Windows, changes LF to CRLF.