Force localize_html_string input to string before any gsubbing

Already submitted upstream, but FYI for internals.