stri_enc_toutf32 rewritten; warn if invalid utf-8 stream