Change urlize filter behavior to be consistent as jinja

There is a bug (maybe? It was intentional looking from the unit tests) in the urlize filter that the punctuations at the beginning and end of a word are removed after urlizing the word. This PR changes the behavior so it is more consistent with jinja.

Test plan: test case included.
This is another inconsistency -- ">" was not matched here but is included in jinja