Make useragent more standards-compliant

Some web servers are weird..
@dlondero please review