pki: cleanup: Found reliance on default encoding

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