Fixes completion corrupting DOS-encoded files.
Merge pull request #123 from taku0/completion_corrupting_DOS-encoded_files

Fixes completion corrupting DOS-encoded files.