Auto Guess Encoding