Fixes https://github.com/brave/brave-browser/issues/11895
Passing char* to Base64Encode was triggering an implicit
construction of StringPiece from a "string" which wasn't
null terminated. Using Base64Encode version that takes
a base::span will make us safe.