Handle mixed line endings better.