Add CR/CRLF to LF conversion function