Bugfixes

Fixes bug in new -f/-e support (permitting both flags)

Also fixes bug in string encoding for useragent; some agent fields are not present.