[FIX] Fixed default encoding search when no encoding exists in the database