Rewrite `generate-unicode.js` using Regenerate and node-unicode-data

Partially fixes #2  and closes #1.