Wendy’s posts strong earnings despite flat sales