driver: changed btoa function