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