Only store valid URLs

I just noticed that this is deprecated in favour of org.apache.commons.validator.routines.UrlValidator. See http://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/UrlValidator.html