Fix a bug on input stream exhaustion.

Previously we were throwing because readByte() requires a byte. Instead
just return -1.
Merge pull request #34 from square/jwilson_0417_input_stream_exhausted

Fix a bug on input stream exhaustion.