detect proper content type for octet-stream files