Add a version.
Generate an error when there is no dictated text to transfer.

Ironically, this error message does not actually get passed to the user, but it does prevent an error from appearing when there is no text to return.
Decode 8-bit encoded text as UTF-8 for return to Cocoa, as otherwise the default encoding is wrong.