Fixed calculating utf8 string size on drawing in gui.