Add file extension to output and show it instead of mime type