add PEM format support, from https://bitbucket.org/adrianpasternak/js-rsa-pem/src