Rename files so they are legal identifiers