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

> When users add special characters to issues (often by copy/pasting text from terminals to issue journals), they cannot export these issues to PDF and get an error (invalid byte sequence in UTF-8).

added by @linki
Use snake_case for methods.<br>Space missing after comma.<br>Surrounding space missing in default value assignment.