Homogenize trailing newlines, ensuring that:

- We only add them when needed (i.e. for SMTP transmission)
- We handle newlines the same regardless of protocol
Remove rootDelim (fallback to "/" when necessary).