Fix javascript error when window name (for window.open()) in IE8 contains a dot