bail in unicode error's __str__ methods if the objects are not properly initialized (closes #21134)
make sure to test UnicodeEncodeError, too