This removes the :separator part of the string, which is added above. That part is added, because it can also contain the :download part. 
I do not like the code, but doing it this way, it also supports a file containing : in the fle name, without rewriting larger parts of the code.