recursively transform key strings from camel-case to underscore-style