fixed #2243: XMLHttpRequest don't support non-ascii characters.
Merge pull request #2710 from dumganhar/xmlhttpreqeust-fix-master

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