enhancement for #181 - sets user-agent header on UrlConnection