[WO-567] fix btoa in worker environment