- fixes to user-agent and encoding