Don't use mbtowc, use btowc.