Uploadify Jquery pugin file name with single quotes issue

I am using Uploadify JQuery plugin to upload file.

I am struggling to upload file having special characters inside file name especially single quotes. when submitting file having single quote inside; file name on server side in $_FILE array, I m receiving file name portion above the single quote.

For e.g. (original file name) abc’xyz.jpg ,on server side I m receiving xyz.jpg only.
Please guide me to rectify problem

if (!empty($_FILES)) {
$file_name = $_FILES[‘Filedata’][‘name’];
echo $file_name;// outputs xyz.jpg

Version i am using -> jquery.uploadify-v2.1.0 (MIT)

I have tested , it works fine. The file name will be saved like this obo\'nnn.sql

Please see that this line is there in uploadify.php , which is there in download.
$targetFile = str_replace(‘//’,‘/’,$targetPath) . $_FILES[‘Filedata’][‘name’];

In my professional opinion. You should craft your own filename, not the one provided by the user. What I do is create a hash of the file contents either with md5_file or sha1_file. I can weed out duplicate files that way and keep unique files. And there is no issue with special characters to cause problems.