Renames invalid directory name