Hello there, I wonder if there is a document somewhere explaining the logic of this encoding detection? Thank you!