Mime detection library