Improve URL validator (fixes #4)

Work in progress in order to get build status.