added 'charset=utf-8;' to saveToWindow(content) function