nulls are encoded as 4 bytes, not eight

confirmed by looking at the output of the java client