Loosely validate a URL