Reset parsing state after mbrtowc(3) failure