set pdf-gen encoding everywhere