fix the encoding of broadcast messages

Signed-off-by: Takashiro <takashiro@qq.com>