Is the encoding argument above not for the passphrase? If it is, it should be parsed by StringBytes.