Detect and output correct file mimetype, fixes welefen/Fiddler#4