Adding PEM encoding and decoding for private and public keys - BETA