Fix saving to tables with uppercase column names. Fixes #377.