Injecting the refresh script disables <meta charset=...> thus breaking any non-latin1 pages, primarily those using utf-8. As a result, ? will be displayed instead of some characters. This is because
<meta> elements which declare a character encoding must be located entirely within the first 1024 bytes of the document.
A possible solution would be perhaps to inject it right before the closing </head>?