fixed plugin test using str instead of bytes
loads of str/bytes issues fixed
ported all __unicode__ methods