Make useragent more standards-compliant

Some web servers are weird..
Merge pull request #1375 from njam/curl-ua

Make useragent more standards-compliant