URL encode data used in StringBooleanCondition.

Heya, this one came up when we tried to query with things like & in the condition. Is this the correct place to be encoding this data?