add base64 and gbk function