A Boston man was charged with drug trafficking after a defective brake light led to a traffic stop in Foxborough that allegedly uncovered 51.8 grams of cocaine, 26.2 grams of heroin and $1,626 in cash.