stri_dup passes some tests for 8-bit-encoded data :-)