diff --git a/src/java/voldemort/utils/ByteBufferBackedInputStream.java b/src/java/voldemort/utils/ByteBufferBackedInputStream.java
index <HASH>..<HASH> 100644
--- a/src/java/voldemort/utils/ByteBufferBackedInputStream.java
+++ b/src/java/voldemort/utils/ByteBufferBackedInputStream.java
@@ -56,7 +56,7 @@ public class ByteBufferBackedInputStream extends InputStream {
         if(!buffer.hasRemaining())
             return -1;
 
-        return buffer.get();
+        return buffer.get() & 0xff;
     }
 
     @Override
Fixed error where negative byte values were read causing the DataInputStream to throw an EOFException.