backend_pgf: fix str/unicode comparison errors
Merge pull request #2407 from pwuertz/fix_unicode_comp

backend_pgf: fix str/unicode comparison errors