I'll send you $20 for the interesting reply and reporting unicode bugs, if you want! (Feel free to email me your info.) But in the situation you mention, you care about the byte length, not the string length. Byte length is a totally valid thing to care about, but string length isn't needed.