fixed #2243: XMLHttpRequest don't support non-ascii characters.