fixes issues with utf-8 when converting to html