title: Troubles with af:inputFile component getFilename() method encoding
body: <p>I have realized file uploading into DB BLOB field as it was described in the Timo Hahn article:</p>
  
  <p><a href="http://tompeez.wordpress.com/tag/afinputfile" rel="nofollow">http://tompeez.wordpress.com/tag/afinputfile</a></p>
  
  <p>Code fragment:</p>
  
  <pre><code>// The event give access to an Uploade dFile which contains data about the file and its content
  
  UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
  
  // Get the original file name
  
  String fileName = file.getFilename();
  </code></pre>
  
  <p>Everything works fine, but I have some troubles with file name encoding. I try to get file name, using getFilename() method, but it works fine only with latin charset, however it fails for files with RUSSIAN charset in file name, e.g:</p>
  
  <p>Original file name: my_file.doc -> my_file.doc</p>
  
  <p>Original file name: заявки.png -> 70O2:8.png</p>
  
  <p>Any ideas how could I solve this problem?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>UPD 27.09.2012:</strong> </p>
  
  <p>I have found interesting bug. If I add <strong><em>file</em></strong> variable from code above into watches I will see <strong>_encoding</strong> property equals "<strong>utf8</strong>". If I change this property to "<strong>null</strong>" everything works fine!</p>
  
  <p>Any ideas? Thank you!</p>