encode

abstract fun encode(text: String): ByteArray

Encodes text to bytes. Unmappable chars become ? (0x3F).