Fix hostnames to always have a leading a-f character.

closes #7756

replacement for #7787
closes #7787