Fixed an inconsistency in the way line endings were handled.