Assumptions about line endings are wrong.

Split removes all the magic characters from the ends-of-line.