Handle malformed domain names and cert problems