Fix locale generator

Fixes #95.