Back to chardet, also for scanDir