using built-in System.Uri.CheckHostName