Adding a utility method for converting from strings returned by WSAPI to Query.Operator.