Fixed protective state control checks (LEV-160)
Made hostname check conformant to RFC952 (TUI-129)