Handle positions when matching on non BMP chars on narrow python builds correctly