Accpet OsStr
instead of str
for flags
#1100
Merged
OsStr
instead of str
for flags
#1100