Revert change to encode_base64 signature, to preserve binary compatibility
with master.

Instead, cast the callsites where size_t is passed (2 occurrences).