Removed the casemode parameter from FileStream. Handle it as flags