Adding the current BEncode java code.