- fixed incorrect percent-encoding of entire URL
- added 404 as an acceptable http status code
- properly percent-encoded query parameters

This should fix some problems when using KickAss as provider.