fixed #2243: XMLHttpRequest don't support non-ascii characters.
Merge pull request #2711 from dumganhar/xmlhttprequest-fix-develop

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