ByteBufferInputStream.read doesn't properly convert bytes, close #1333
Make userId UUID, close #1332