encoding: Move oid support from security/certificate to encoding.