Fix encoding

I ran into a problem using NetworkX, graphviz was returning str objects while pygraphviz was expecting bytes objects. I fixed everything so that every test and example pass. I might have overlooked something but it look like it is working fine.