ensure base64 returns a number