This method converts LiveCode 'Text' to Mac 'Text' - this is essentially the line ending conversion. Thus you need to:

Decode the input dataref as a native string.
Convert line endings
Encode the resulting stringref as a dataref using native encoding.