fixed encoding, added (untested) support for _NET_WM_ICON
more work on window icon, support title, fully transparent icons