replace slashes with dashes for hostname