pki: cleanup: Found reliance on default encoding

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