Use correct Base64 encoder, depending on availability