Use a valid character for hostname

https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/784420
Allow dash in profile name

https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/918796