Fix problem of chardet