fix charset missing bug