[utils] Separate codes for handling Youtubedl-* headers