Fix stringsAsFactors problem with lubridate