Many of the rules for Canonical-OER can be enforced during
decoding, such that exceptions are thrown if the decoder detects
that the encoding was not canonical. By default, this behavior is
disabled. You can enable this behavior by invoking
setCanonicalMode(true)
on the decode
buffer.