fix some link handling in i18n (using html_safe)