Integrate ioutil.ReadByte from the bpe branch into trunk.