Failing tests for #43
Relax valid_hostname() to accept numeric labels

Fixes #43.
Prevent SEGFAULT on bad address

Fixes crash in #43