Tighten up the properties name validation code.