Fixed an error on Windows when checking a path with accented characters