fix freezing cinnamon-settinge while using Japanese (UTF-8) fix #2007

fix https://github.com/linuxmint/Cinnamon/issues/2007