Trim nulls (0x00) from buffers