Make url validation more flexible.