Escape the phrases in a range query.

In order to prevent query injection, the helper methods should escape
the phrases.  Otherwise you could end up with something like
rangeQuery('1', '2] someOtherField:[* TO *') and leak information, etc.