Replace hypen (`-') by underscore (`_') when generating codes from names