preserve an asterisk at the start when escaping a search term

follow up from https://github.com/owncloud/core/pull/12702, Fixes #12647 
it would garbage other characters, see http://php.net/manual/en/function.substr.php#90581