We just ran into a related UTF8 variable bytes per character issue. Thanks for sharing this. I'm sure it will help us out.