Perform apostrophe purge before converting non-word characters to hyphens