Retain 'ua' when user specified wherever possible.

In response to [rt#95796](https://rt.cpan.org/Public/Bug/Display.html?id=95796)