Tweaked URL encoding for v3 queries.