Set/get correct encoding for window title