Autodetect text files and force to have unix EOFs