urlencode for file download