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