Fixed length calculation fault on foreign characters

To properly calculate the byte length of a utf-8 string (required when dealing with non node peers), use Buffer.byteLength instead of string.length.