[BrowserKit] fixed too greedy replacements