Add user_agent and error attributes
Drop PWP::Encoding dependency
Merge branch 'sergeyromanov-patch-1'