Encode label name