separate user agent assignment. fixes for urlencode bug, missing after handler