UrlValidator now guards against some classes of invalid URLs