Fix text file recognition