As I remember, all you need to do to change a unit name is rename the "unit" object to what you want it to be. I have no idea what you did to get to be a filepath...
Strings are stored according to a pseudo-filepath like that, so the Stats - Name value got blanked it would probably load the path as a default instead of a null string. Just a guess though.