Encode to strings (of '0' and '1').
encode() was redundant.