Revert "revert to use null encoding for pdf file - no support for node 0.8"

This reverts commit e221e02ae16bca7b4ee90aeda9b03c60c8d6f1fe.