fix dnd with media with spaces. Closes T1586

The path is url encoded without the prefix "file:".