got ping/pong to work (two way data events work!)
also fixed exception logging for formatting. derp I miss-read something...

changed str.encodes from 'latin-1' to 'ascii' because thats what they should have been. now it will properly send UTF-8 down the wire.