workaround url encoding for q parameter in search

workaround for the problem mentioned in https://github.com/pksunkara/octonode/issues/87#issuecomment-33254775

Code is not very pretty, let me know if you want something changed