Fixed appearance of ssh hostnames with [] in them

refs https://github.com/fish-shell/fish-shell/issues/1355