The 'flaggedRanges' property can sometimes report the wrong values in a field containing mixed unicode and non-unicode text.