Fix base64_encode of key so it works in admin tool.