Export to PDF - fix for non utf8 strings