added: filename validation beofre renaming.