Encodes Value of Type defined in the ASN.1
module Module. Returns a binary if successful. To get
as fast execution as possible the encode function only
performs rudimentary tests that the input Value is a
correct instance of Type. The length of strings is, for
example, not always checked.
Use Module:encode(Type, Value) instead of this function.