titlecase keys & add newlines on dump