New function to get filename extension.