restore auto-detection of text files

We force the usage of LF line endings, but *only* in text files.
auto merge of #9344 : thestinger/rust/auto, r=pnkfelix

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