The encryption_key and the hmac_key need the hashed username/e-mail address instead of the cleartext e-mail address given in the documentation of the storage format.
Chromium does not support flags for the JS replace() function. Use the regexp parameter to correctly replace characters for the mozilla b32 encoding function.