iTermSessionLauncher.m in iTerm2 before 3.5.0beta12 does not sanitize ssh hostnames in URLs. The hostnameβs initial character may be non-alphanumeric. The hostnameβs other characters may be outside the set of alphanumeric characters, dash, and period.