Fix format.headers not ending with a newline