Reimplement lines
Reimplement lines

This should fix two issues:

- a trailing newline character resulting in an extra line (#3)
- dos line endings were not recognized (#4)

michaelt/streaming-bytestring