[WO-567] use btoa at runtime in browserify enviroments