Fixed issue with creating encrypted wallets.
Merge pull request #11 from jimmysong/fixwalletcreation

Fixed issue with creating encrypted wallets.