Added version that accepts all line endings.