Massage content-type before sending it to mime detection

Fixes #67