Use proper base64encode func