Here you go @monokrom.
And thanks, it is a fun puzzle indeed.
This update has been rightfully requested a loooooong time ago by @haraldpeter.
Might still take a while to flatten everything, add kerning and make sure the replacement works everywhere.
But tricky letters are resolved now.