[encode] WIP: add unknown properties support