Remove extraaneous NUL bytes from message protocol