fix crashing bug converting from mac newlines with trailing newline