Use write_field in write_pkg_file
Use write_field in write_pkg_file

This creates a wrapper function for writing fields in the PKG-INFO file,
both to simplify the syntax and to add a point where we can inject an
encoding function in order to support Python 2.7 compatibility.

pypa/setuptools,pypa/setuptools,pypa/setuptools