Force localize_html_string input to string before any gsubbing

Though about doing the `.to_str` in `PdfHelper` but this seems universally safer.