fixed crash in dupe thread
url encode filename