In wc, replace mbrtowc() with new utf8towc() which doesn't have a context struct or care about locale.