pub fn encode(pem: &Pem) -> String {
    encode_config(
        pem,
        EncodeConfig {
            line_ending: LineEnding::Crlf,
        },
    )
}
Encode a PEM struct into a PEM-encoded data string

# Example
```rust
use pem::{Pem, encode};

let pem = Pem {
tag: String::from("FOO"),
contents: vec![1, 2, 3, 4],
};
encode(&pem);
```
src/pem.rs