preserve an asterisk at the start when escaping a search term

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

not sure I undertand this... why are we only calling mb_substr on $input when it starts with an '*'?