Let strftime use writeStringToMemory function