Fix to http metadata engine

Hi,

Fixed an issue when the http metadata engine tryed to download encoded torrent file.
I couldn't remove other commits that didn't relate to the actual fix so i hope you can do something on you're end.

Happy coding,
david