test: fix string encoding in the python test bindings
The protocol encoding is the string including the null byte. The test wrappers sent the right string length but only encoded strlen() bytes so where we had a string that's a multiple of 4 long we ended up claiming it's a byte longer than was on the wire.