Encode menu changes.