A port of the browser's `atob` function