fixed bug in download thread when url contains non-ascii character