backend_pgf: fix str/unicode comparison errors (v1.3.x)

When python 2.x starts mixing str and unicode instances, the string comparisons in backend_pgf.py will fail. Correct this problem by using the normal comparison operators.
(PR for v1.3.x)