Replace Base64 with atob/btoa

This is the companion PR to artefactual/archivematica#144.

Fixes #7698.