Refactor hashtagize filter

* Remove relative import that breaks in the django upgrade
* move linkify function to be an inner def
* make hashtagize work properly with conditional escaping
* mark hashtagize as a string filter