URI decoded before checking if file_exists

I added URL decoding so that files with spaces (%20) are decoded to correct filename and found on disk.