Optimize url encoding/decoding

Shaves 5-10 μs/req