fix encodeURIComponent twice for download url