replace % in pattern with .* and surround with ^$ to get a real regex pattern

@DeepDiver1975 fixes https://ci.owncloud.org/job/server-stable5-linux/database=oci,label=master/lastCompletedBuild/testReport/%28root%29/Test_Files_Cache_Cache/testSearch/