Deal with different line endings.