Fix a case folding bug

Fixes https://bugs.openmw.org/issues/753#change-2844