normalize string to base64 string