Refactor the script to match my coding style more and update the comments. When checking the filenames for non-ASCII characters, check also renaming of files instead of only additions.