Permalink Class Fix

Permalink Class Fix to Debug against sniffer and Regex replacements and
changed delimiters to solve &amp; problems.