Fix for UFT8 buffer
Fixing UTF8 bugs