set char-type

to avoid encoding chinese in US-ASCII may causing error: (Encoding::InvalidByteSequenceError)