modify some packet variable name

fix chat problem with multi-byte characters
Merge pull request #76 from danny8376/somefix

fix chat problem with multi-byte characters