The previous code was written to work around the fact the line ending conversion didn't understand unicode - it does now so we can simplify...

The input dataref contains UTF-16 encoded text, so MCStringDecode with UTF-16 encoding.
Then convert line endings.
Finally, the Unicode clipboard type expects UTF-16 encoded text, so MCStringEncode with UTF-16 encoding.