correctly handle dates and URIs