Writing file name to metadata

I'm not getting very far at all so I'd like to summarise my position in the hope someone can help:
The script I'm using is:
@nodeselect
@sync:dopusrt /acmd SetAttr {filepath} META comment:previousname:{file}

This puts the file's name in the User Comment field (see grab) but EXIFtool reports 'Invalid EXIF text encoding for User Comment' (see grab). My DAM software IMatch doesn't find any data in this field. IMatch requires UTF-8 encoding for metadata.
The script is not able to write the file's name to metadata of camera raw files (see grab). I've tested the script with jpg and TIF. It works and presumably will work with other image files.
My questions:

  1. How do I write metadata without causing an invalid encoding error?
  2. How do I write metadata to camera raw files?
  3. How do I append the file's name to the Comment field rather than overwriting the existing comment? I want to have a history of file name changes.
    Thanks in advance for your time,
    Robert