Loosely validate a URL.