why `str.encode(a,b)` instead of `a.encode(b)`?