TIMOB-17567-Replace the use of getFileExtensionFromUrl as it is for enco...

https://jira.appcelerator.org/browse/TIMOB-17567
Replace the use of getFileExtensionFromUrl as it is for encoded url and won't work with path with special characters.