code: function encodeToBase64(originalString) {
      const bytes = te.encode(originalString);
      const byteString = Array.from(bytes, byte => String.fromCharCode(byte)).join("");
      const encoded = btoa(byteString);
      return encoded;
    }
docs: btoa / atob don't work on Unicode. This version is a superset of btoa / atob, so it maintains compatibility with older versions of the live viewer which used btoa / atob directly.