PDFs should be bytestrings, not unicode.