Convert between streams of bits and streams of '0' and '1' characters