fix aliasing violations in mbtowc and mbrtowc