Replace MemReader with BufReader.

BufReader operates on a borrowed vector, which is all we want here.