1) Out-of-bounds read is eliminated.
2) afc::encodeBase64(): chunks are appended to the destination string more efficiently.