lib/core/exec: accept Text instead of String