Send correct MIME type instead of text/plain (fix #18)

Forwarding this patch on from @pkkm.