The UTF8 to Mac charset conversion function utompath() exists in three places that I can see:
etc/afpd/desktop.c
etc/cnid_dbd/cmd_dbd_scanvol.c
bin/nad/nad_util.c
The base functionality is the same but they all have slightly different parameters and side effects. I would like to attempt to consolidate them.