Use bytesize method instead of length in protocol.

Needed for correct handling of strings, which contain multibyte chars.
Merge pull request #42 from distorhead/master

Use bytesize String method instead of length in protocol.