Interesting, even if polymorphic regex not available yet there is a related regex recompiler (
ShiftJIS-Regex)
for Shift-JIS Japanese which is 2 bytes per character. I could certainly see that failing to shrink the string with a dot; got some very interesting results when I commented out the use statement once last year.