Implements parsing of multi value User-Agent string. Fixes #8719