Lua base64 encoding