Added escaping for format strings.

Characters between '[' and ']' are now escaped (rendered literally) in date-time
format strings.