Fixed #21198 -- Add explicit check for __str__ definition in @python_2_u...

...nicode_compatible