Fixed wrongly calculated message length when there are none ASCII symbol...

It was wrongly assumed that the length of a string is the same after UTF8 encoding, which is not true for none ASCII symbols. This was causing Redis to trim the message.