[YoutubeDL] Check for bytes instead of unicode output templates (#5192)