Ensure there is a newline character before a PEM key is written.