Investigate adding support in safe_open for the cchardet library. Ideally we support for chardet and cchardet so look into any API differences.
safe_open
chardet
cchardet