add proper handling of spaces in passphrases