Docs
chromia.com

FUNCTION

text.to_bytes

pure function to_bytes(): byte_array

Converts this text to an array of UTF-8 encoded bytes.

Since 0.9.0