[docs] Tutorial: write() does not expect string in binary mode (issue 26001)