Guess MIME type if Content-Type header is invalid