Guodian: fix string encode.
Guodian: fix socket.