title: Laravel: File::allFiles() removing diacritics from file paths, how to preserve them?
body: <p>I'm using <code>File::allFiles()</code> to get all of the files from the given directory. </p>
  
  <pre><code>public function syncData(){
      $images = $this-&gt;getAllImages();
      dd($images);
  }
  
  public function getAllImages(){
      return File::allFiles(env('SYNC_FOLDER'));
  }
  </code></pre>
  
  <p>After retrieving all images, i'm moving them to storage directory, but <code>allFiles()</code> method is removing diacritics from pathname string which makes them invalid. Original file path looks something like this <code>D:\Tumblr\Jogilė Verbickaitė.jpg</code>, but after retrieving images, diacritics are removed from the filenames. </p>
  
  <pre><code>array:1 [▼
    0 =&gt; SplFileInfo {#205 ▼
      -relativePath: ""
      -relativePathname: "Jogile Verbickaite.jpg"
      path: "D:\Tumblr"
      filename: "Jogile Verbickaite.jpg"
      basename: "Jogile Verbickaite.jpg"
      pathname: "D:\Tumblr\Jogile Verbickaite.jpg"
      extension: "jpg"
      realPath: false
      writable: false
      readable: false
      executable: false
      file: false
      dir: false
      link: false
    }
  ]
  </code></pre>
  
  <p>How can i preserve them to avoid invalid path?</p>