Fix submenu visibility for UTF-8 strings