I created this command-line tool to fix permissions on OS X for files imported from Windows.