A lot of images from my company database have non-conventional names such as "st. john's.jpg". In cf8, I used URLEncodedFormat(myimage) inside IsImageFile to check such images(see my code below). It worked perfectly until I moved to cf9. It seems like cf9 doesn't recognize URLEncodedFormat files inside IsImageFile. Please advise how I can make cf9 check images with both conventional and non-conventional names.
<cfif IsImageFile("http://www.mywebsite.com/images/#URLEncodedFormat(myimage)#")>
<cfset imageURL = "/images/#URLEncodedFormat(myimage)#">
<cfelse>
<cfset imageURL = "/images/noimage.jpg">
</cfif>