Writes a dataframe to a file, preserving row names.

save_dataframe(x, fname)