Encodings detection