Convert non-C identifier progname to C identifier.