As reported on the mailing list, if ssh_executable (from a config setting) contains nonascii characters then we could get a UnicodeError here. Transform into bytes before passing to subprocess so that subprocess doesn't transform to bytes for us.