Revert "make encode_html idempotent"

This reverts commit c0b4e8bf84859dfddec1eaa28c75aad9c8074ac9.