Use quotes so that passwords with spaces are preserved

Ticket: #3472