Implement window.atob/btoa