compat: remove unsafe and unneeded Encoding class

Left over from legacy code.

Base64 usage is thread unsafe.

String usage is not required.

Change-Id: Ie7a540d9c69b55ce8431839c1164927024161d30
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>