Fastfood company McDonald's wants to boost US sales by encouraging franchisees to stay open all night.