feat(atob): port and modify from Base64.js

Please also modify `btoa.js` to require this as well. You may create another commit for this change.