Fixed #20338 -- Stripped ending dot during host validation