Remove unused imports.
Modernize syntax.
Newer Busey statement format.
Check for encoding application; reduces chance of Acrobat barfing.