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

Fixes #234