correct the charset error