fix a bug of 'ascii' codec under Python2

gist containing CJK characters will raise 'ascii' codec can't encode characters