Improved line ending search.

This search passed to split() is now a regex that will match CR+LF, CR,
or LF.