Let's not crash if passed invalid utf-8 strings.