instead of checking for MIME, check if we can tell the file is a text
file from the extension.