fix some easy encoding and user-agent errors