support python string escape when reading filenames