FIX: Make base64 encoding py3-compatible.