widget: text_encoding/textbox: fix compiler warnings