Updated encoding (bug)

Seems to only work with UTF-8 without BOM