fix(\n): Fix first occurrence of \n line ending

Previously the first occurrence of a '\n' or '\r' character would be removed if
the file did not start with \r\n.