transparently insert metadata chars into a string at offsets without affecting the overall offset