Based on discussion in #206, how about:
- if UA is not specified, use default
- if empty string is specified - keep it (as discussed in bug above)
- if nil, then omit header

(side note: can you switch to .nil?)