widget/textbox: fix the wide char support