set char-type 

to avoid encoding chinese in US-ASCII may causing error: (Encoding::InvalidByteSequenceError)
Merge pull request #1 from milkliker/master

set char-type