I would prefer to keep it as a script, hiding the transformation internals.

The script could be renamed, though.  `cf2cstring.pl`?