generating useragent string without reliance on WebView