Improves date and richtext handling in the export formats. Fixes #116.