encode html entities using decimals, and encode names

fixes quotes appearing as &quot; in the letters