Serialize categories by name