fix #54

Files with windows-style newlines are now correctly divided into lines.

Newline-style is not preserved on output.