Fixed buggy encoding detection. Locked to latin15/utf8.