now weekday immediately after the day number
added encoding comment