correct string escapes and dates when dumping