escape the path for the new filename