lib/core: remove uses of Byte for Text