wip: pdu encoder