(fix) Fixes a misuse of the Host header that led to bogus urls.

Fixes #234
Merge pull request #236 from reem/fix-host

(fix) Fixes a misuse of the Host header that led to bogus urls.