add Bytes() function to encode wallets to disk