Fixed category orphaning bug

Hyphens in categories are now replaced with en dashes (–) to prevent
being set as a child category with no parent.