Merge pull request #668 from ayanamist/bugfix

Use stream to handle local file.
Since local stream is not specified with encoding, we should use Buffer directly.