hmmmm, that page works to strip out the slash and single quote on my computer, maybe try changing the code to this:
<?php
// Code added to strip single quote from any entered file name
if(isset($_FILES['upload']['name'])) {
$_FILES['upload']['name'] = str_replace(array("\\","'"),"",$_FILES['upload']['name']);
}
?>