Fixes completion corrupting DOS-encoded files.

`eclim-complete` corrupts files with DOS line breaks (and also files containing multibyte characters) since it uses byte offset instead of character position.