Handling invalid urls.