Clean up tag names.