Do encode DATE and DATETIME as strings.