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
Merge pull request #578 from tjaalton/naming-fixes

Naming fixes