preserve an asterisk at the start when escaping a search term

Fixes #12647 (look also there for test steps).

@jnfrmarks @craigpg @MorrisJobke @LukasReschke