fix btoa call