Fix a bug with unicode strings in FileTools module
Fix another potential source of unicode confusion