https://www.freedesktop.org/wiki/Software/uchardet/