Moved field iteration code to C -- conversion is now much faster because no intermediate Python strings are created