[dto] Add copy of Apache UrlValidator for gwt compatibility