List generation improvements

Don't use raw Unicode in the generated source and programmatically create the
string-to-entity lookup hash instead of having it verbatim. This significantly
cuts down the loading time (170 -> 108 seconds on my machine)