AI is sending people to jail—and getting it wrong