fixed base64 encoding of avatars

I broke it a few commits ago