Encode the URI for the search. should certainly be done elsewhere.

fix #151