pdf: Handle special characters.