Should handle all line separators (CRLF or LF) now