Fixes NB#131375, use the unescaped name of files to check if they already exist