Precompiles is_host_name regex.