fix the charset bug