Fix unnecessary \0 in prefix_search