Fix handling of disappearing windows on startup
Made property getter tolerate non-utf8