Prevent name exceptions when the hostname has a - in it.

ERIC WAZ HEIR
more