tidy up some uses of Bound<'_, PyString>::to_str
#1544
Merged
Bound<'_, PyString>::to_str
#1544