Fix for multibyte strings when removing links