Fix an result alignment bug in fw.

Also make coff more useful.
Define the encoding.

Apparently python eats a brick and dies if I use something it doesn't
understand in a comment.  IN A COMMENT!  I suppose it's only fitting that the
fix is a magic comment, though it's disgusting that it has to go at the top of
the file.