Fix server crushes on unvalid URLs.