title: Save filename with unicode chars
body: <p>I have searched all over the Internet and SO, still no luck in the following:</p>
  
  <p>I would like to know, how to properly save a file using <code>file_put_contents</code> when filename has some unicode characters. (Windows 7 as OS)</p>
  
  <pre><code>$string = "jérôme.jpg" ; //UTF-8 string
  file_put_contents("images/" . $string, "stuff");
  </code></pre>
  
  <p>Resuts in a file:</p>
  
  <pre><code>jГ©rГґme.jpg
  </code></pre>
  
  <p>Tried all possible combinations of such functions as <code>iconv</code> and <code>mb_convert_encoding</code> with all possible encodings, converting source file into different encodings as well.
  All proper headers are set, browser recognises <code>UTF-8</code> properly.</p>
  
  <p>However, I can successfully copy-paste and create a file with such a name in explorer's GUI, but how to make it via PHP?</p>
  
  <p>The last hardcore solution was to <code>urlencode</code> the string and save file.</p>