OpenSlide only supports `str` as for path slides, but on our side we could accept `pathlib.Path` as well and convert it to `str` internally.