https://github.com/chardet/chardet