add ExtensionObject encoding/decoding