Shareholders of confectionery manufacturer Hershey have approved a change in its name to The Hershey Company.