Make core.py tolerant of invalid chars in DMI data
Make core.py tolerant of invalid chars in DMI data

Solves issue #48184. Improves on PR #48216.

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt