Fix handling of raw user agent
Merge pull request #182 from alex/fix

Fix handling of raw user agent