BufferedFile._wbuffer should probably be Bytes