add string base64 encode method