Convert non-Latin characters in uploaded text to HTML equivalents

Add new HtmlUtil function for this as it needs to occur in multiple places