encodeWithLength

Encode the length of (as four bytes) plus the value itself