avoid unfortunate unicode encoding errors.

Some window's names can't be decoded. More robust this way
Merge pull request #2 from brumar/master

avoid unfortunate unicode encoding errors.