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