Fix bug in encodeToBinaryContentObject: Need to return the result.

Change-Id: I8e2a4e47f0056a3ee0b22ef854c60ec3ef90b8b6