fixed ensure-bytevector