btoa workaround attempt