Fix some memory leaks and allow sending packets with embedded nulls

Apparently Utf8Value doesn't mess with null bytes like AsciiValue does.