Encode the name into the unique ID