avoid unfortunate unicode encoding errors.

Some window's names can't be decoded. More robust this way