fix social login bug and chinese base64 encoding bug