New function, to insert possible non-nul-terminated byte sequences into a