Changed. This was copied from `email.generator.Generator`, thanks for helping to improve it. I also added a note to the docstring saying this code is (almost) the same as parent's, but solving the relevant bug.