sorry for the confusion... my code actually does not wrap the StringRepresentation with an ObjectRepresentation, so it looks like:
retVal = new EncodeRepresentation( Encoding.ZIP,
new StringRepresentation( builder.toString(),
MediaType.TEXT_PLAIN,
Language.ENGLISH_US,
CharacterSet.UTF_8 )
);

