bug fix: debug information & charset string incorrect