fix unicode typenames (illegal in py2)
fix unicode event names