gui: Always convert file names to UTF-8 for use in syntax.