More permissive hostname regexp

The server field should be allowed to contain uppercase letters
and numbers.  We should convert it to lowercase when storing the
entry, for consistency with the rest of the implementation.