Converts DNS hostnames to their canonical comparison form following the
ratified canonical-host normalization contract: Unicode NFC, case mapping,
UTS-46 label mapping and validation (non-transitional, with
`UseSTD3ASCIIRules`, `CheckHyphens`, `CheckBidi`, and `CheckJoiners`),
conversion to lowercase ASCII A-labels, and DNS length verification, while
preserving whether the input carried a single terminal root dot.