Fix key format conversion from OpenSSH to PEM