Why do I need 'b' to encode a string with Base64? Why do I need 'b' to encode a string with Base64? python-3.x python-3.x