Fix escaping unfortunate strings

Strings that look like arguments, as well as no string at all, were
causing trouble.

Reported by: Thomas Bächler
More possibilities for connection scripts

This allows connection scripts to provide defaults, among other things.