avoid string copies for all range-like queries

Fwiw, still running the benchmarks