fix a charset bug