Further cleanup the protocol

Added a better write/readUtf8

Signed-off-by: Chris Sanders <zidane@outlook.com>