replace CRLF with proper line ending