decode URL before stripping trailing punctuation, then re-encode on output. this fixes the broken tests. it should also fix a potential bug when a url gets truncated halfway through an entity.
decode URL before stripping trailing punctuation, then re-encode on output.
this fixes the broken tests.
it should also fix a potential bug when a url gets truncated halfway through an entity.

njdubois/lib_autolink,iamcal/lib_autolink,iamcal/lib_autolink