SERVER-11295 Encode 'anyAction' in a future-proof way