Your WriteString calls Write which creates a new Convertor, which loses your headers