PDF::Writer's documentation is very clear about this: PDF does not
support UTF-8, and that's probably what you're trying to use. Use
substitution character maps instead (the example code in _The Ruby
Way_ 2nd Edition talks about how to use this). UTF-16 support will be
added to PDF::Writer at some point in the future.