Detoxification of heavy metals