Fixes to base64 module.