fixes search with encoding funkiness