old pdf file encoding not working