Corrected Host header handling (fixes #2477)
User-Agent header no longer needs a leading space