Make use of shellescape() and fnameescape() functions which better escape filenames than previous handmade calls to escape().