Fixed issue #29: Added empty name check on DNS::encode_domain_name.