Fix the bug for the message is a hash. Fix the bug for multi-bytes charactor did not receiverd.