process expected name to get a good git name