Escape whitespace in passwords

Signed-off-by: Michael Barton <mail@michaelbarton.me.uk>