[docs] [issue35318] Check accuracy of str() doc string for its encoding argument