Fix python 3 unicode writing in gnuplot script