Use `he` for robust HTML entity encoding/decoding

_ent_ has [several open issues](https://github.com/substack/node-ent/issues/created_by/mathiasbynens?state=open) that are not present in [_he_](https://mths.be/he).

This is a patch against the master branch, so the build still fails, but that is unrelated to this change.