While at it, also make sure that mbstring case conversion takes into account the specified substitution character and substitution mode.