getfields.c

I did this in a way that we can go back to utf if we wish.

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