Add FileRenamer class for renaming files safely.