Added custom text encoding support for `TextLine` and `TextLineScheme`