Companies including Mars Inc and PepsiCo Inc are changing names and branding of some of their products that are rooted in racist imagery.