Fix base64Encoding deprecation