Make sure we are using the length of the encoded string in the protocol