Auto detect text files