Fixes #1143, spaces in filename links

If %20 in path and path doesn't exist, replaces %20 with spaces.