bdeutil: Fix behavior when fixing position is on an inner opening/closing character