Host Header Handling

Fix for Bug #2477.

Also, as discussed in IRC, I've removed the requirement to have a space after the colon in the 'User-Agent' header.