Precompiles is_host_name regex.

This way performance is not dependent on the interaction of arbitrary user code and `re`'s cache. :)