Add allow_badcharcnv argument to all conversion function, for