release 3.0: pdf: fix failure exporting issue pdf with UTF-8 U+FFFD (#1918)