Make file parsing with mixed line endings better.