fixed minor conformance error in encoder