SERVER query string contais a url encoded string that causes this compar...

SERVER query string contais a url encoded string that causes this comparison to fail for file names containg spaces, it need to be urldecode()