fix resolve charset.