Fixed issue with creating encrypted wallets.