diff --git a/scdl/scdl.py b/scdl/scdl.py
index <HASH>..<HASH> 100755
--- a/scdl/scdl.py
+++ b/scdl/scdl.py
@@ -319,6 +319,7 @@ def download_track(track):
         print('')
         return
     title = track.title
+    title = title.replace("–", "-")
     print("Downloading " + title)
 
     #filename
@@ -337,7 +338,7 @@ def download_track(track):
         title = ''.join(c for c in title if c not in invalid_chars)
         filename = title + '.mp3'
 
-    title = title.replace("–", "-")
+    
 
     # Download
     if not os.path.isfile(filename):
bugfix of windows cmd

The replacement of the longdash needs to take place before the first print argument using the title string, to fix the bug on windows command line interface.