Convert CPT dash (-) to underscore (_) for valid module class name

Since Custom Post Type names may contain dashes (-), and PHP classes may not have dashes in the name, I created a workaround so that sitemap modules can be created for those post types. This should be backwards compatible in all instances except in the strange case where you may have post types: 'my_cpt' and 'my-cpt'