Attempt to fix pdf encoding