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

Fixes #2 and closes #1.