Fixed incorrect source encoding

This will fix some production edge cases when file indexes contain incorrect unicodes.