Extract the matchable part of a user agent string, essentially stopping at the first invalid character.
'Googlebot/2.1' becomes 'Googlebot'
See Implementation
Extract the matchable part of a user agent string, essentially stopping at the first invalid character.