fn encode_plaintext(pairs: impl Iterator<Item = (String, String)>) -> String
https://html.spec.whatwg.org/multipage/#text/plain-encoding-algorithm