Forked version of chardet