make html protocol calls to to_string adhere to the new api