Validate the host component of the proxy URI.

Part of issue #7.