fixed map problem, changed to use libotr base64 implementation