fixed encapsulation encoding of simple fields