Made hostname check conformant to RFC952 (TUI-129)