Fix MIME type detection in api.httpStream(), allow override for transcodes