<?php
$file = "ação-íaaa.jpg";
$file = iconv('UTF-8', 'ASCII//TRANSLIT', $file); echo "{$file} <br>";
$file = "arquivoáéíóú.jpg";
$file = iconv('UTF-8', 'ASCII//TRANSLIT', $file); echo "{$file} <br>";
// your code goes here
PD9waHAKCiRmaWxlID0gImHDp8Ojby3DrWFhYS5qcGciOwokZmlsZSA9IGljb252KCdVVEYtOCcsICdBU0NJSS8vVFJBTlNMSVQnLCAkZmlsZSk7CmVjaG8gInskZmlsZX0gPGJyPiI7CgoKJGZpbGUgPSAiYXJxdWl2b8Ohw6nDrcOzw7ouanBnIjsKJGZpbGUgPSBpY29udignVVRGLTgnLCAnQVNDSUkvL1RSQU5TTElUJywgJGZpbGUpOwplY2hvICJ7JGZpbGV9IDxicj4iOwoKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmU=