(note: from Ossfuzz issue 32906: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32906) Looks like there is a boundary condition with UTF-8 codec.