add mult-language support

fix send crash after no client connect
remove textcodec call