Fix bad hostnames being generated

Let's just be extra-cautious and strip out all extra non-alphanumerics other than the '-' separators.