Also pass EncodeObject to permission modules.