CDK-126. Fix ColumnEncoder/Decoder issues.

Fix for https://issues.cloudera.org/browse/CDK-126.

Note that I didn't change the in.available call, since the string length is not encoded by design. It reads until the end of the stream and in the implementation 'in' is always a ByteArrayInputStream, so it's OK. I added a comment to that effect.