Fix compatibility with EditorConfig Python Core 0.11.1.

0.11.1 core uses unicode string. Make changes adjust to this.