set proper encoding for temporary file
Merge pull request #12 from Dewdrops/master

set proper encoding for temporary file to improve support for languages which allow unicode symbol in source