Ensure that both CRLF and LF work as end of line markers

Fixes #15.