Fix incorrect usage of mbrtowc().