lib/core: Improve speed of an indexed access in a UTF-8 `Text` entity