attempt to fix xmlrpc encoding issue

Should fix issue #167

Does remove an ancient encoding hack that I can't recall the history for. Probably from the dim dark ages of generalised unicode confusion. 

Also some PEP8 amendments.