lib/fold: Catch error case from mbrtowc()