Fixed incorrect source encoding

This will fix some production edge cases when file indexes contain incorrect unicodes.
Merge pull request #6 from isabanin/patch-3

Fixed incorrect source encoding