Fix double-encoding issue visible when searching with terms containing unicode chars