accept all newline variations

"The sequence
CRLF (0x0d0a) is used to end a record, although parsers SHOULD be
tolerant and also accept records terminated with a single newline
character."
Merge pull request #21 from 486/newline

accept all newline variations