Encapsulated values were being written with a length.

By setting vl to the length of the value, I was overwriting the
correct value of "0xffffffff".