pki: cleanup: favor Charset.forName() over plain string

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