quote the password string

handle the case where passwords contain [ or ] or : characters which the shell doesn't like.
this changes --password [0:]foo   to be --password '[0:]foo'
Merge pull request #11908 from eedgar/develop

quote the password string