fix search query encoding

@rdegges  This fixes #72 and #39.

I've tested both cases with "/" and "&" (with or without combining wildcards) and it works now.