You could try a collection of actions to refine the case conversion according to English rules:
There is no simple way to avoid the unlogic of language.