fix chinese file name encode issue

add decodeURIComponent() when write to file.