buffer: improve base64 and base64url performance
#52428
+119
−14
Merged