Strip trailing punctuation (. and ,) from URLs