Using file --mime-type to detect text for fallback