(Fmd5): Use a different logic to decide the coding system