normalize permalink