make sure a file is text before trying to read it (to symlink it)