Removed the '.' concat for the custom extension.

Removed the concatenation of '.' to the file extension. So that the user can specify 'text.pdf' as an extension and download only those.