[Python-checkins] gh-126004: Fix positions handling in `codecs.replace_errors` (#127674)