Fix read error

Have been getting a KeyError b'' due to read returning an empty byte string.  Fixed by changing to use readexactly.