updated message transmission method, fixed unicode issue