url: Handle bad URLs