fixed problem with date/datetime write/read in yaml