Re-implement the normalization function exactly as the original application, so that it really matches the title order in titles.idx.
Fixes #20