Fix getfields

When I de-utf8-ized this one I made a botch of it.

It is fixed. I am leaving it mostly intact, cryptic variable names
and all, on the off chance we want to re-utf8-ize it some day.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>