restore auto-detection of text files

We force the usage of LF line endings, but *only* in text files.