Fix up state linking to handle states with slashes in them.