Error when trying to delete a folder. Input is not valid Modified UTF-8
<p>I have a folder with some files, one of those called 'dise�o.jpg'. When I try to remove the folder with the following sentence:</p>

<pre><code>FileUtils.deleteDirectory(pathUnidadRenamed);
</code></pre>

<p>the app crashes throwing the following error:</p>

<pre><code>  JNI DETECTED ERROR IN APPLICATION: 
  input is not valid Modified UTF-8: llegal start byte 0xa4
  string: 'dise�o.jpg'in call to NewStringUTF
  from java.lang.String[] java.io.File.listImpl(java.lang.String)
</code></pre>

<p>I already know that if I sign the app, it will not crash (but it will not remove the folder), but in this case I need to remove the folder and I do not have the possibility to rename the file due to customer requirements.</p>

<p>Does anyone know how to avoid that error? Any idea?</p>

<p>Thanks in advance.</p>