Don't guess at mime type; use proper extension for downloaded file.

Change-Id: Ieaf0b2dbf2017d114c4f92a9c94b79e24e9cb8df