normalize permlink