Corrected indentation of checkValidContextDirChars (refs #2786)