Correctly handle HOST header that contains a port number.