Changed the call to pem.EncodeToMemory() to the more convenient pem.Encode().

Signed-off-by: Joe Dallago <jd.dallago@gmail.com>