Changing file and folder names on your iMac can be caused by malware. Try running an antivirus scan on your system.
open