[Core] Fixed: Copy file and rename throws exception (bug #14181)