C f string fixes

These are the changes suggested for issue #82.