Improve valid() of NETLMv2, fixing issue #461