File upload: Set HTTP Content-Type explicitly.

Apparently, if you don't set Content-Type on PUT, some Java library
implementations will set it to x-www-form-urlencoded.

Thanks to Ivan Lyutov for coming up with a fix.