Fixed a bug affecting crafted user agent strings