beautifying component names from pathnames (for now)