Adding support for loading and saving keys from PEM files