Fix compilation in remote-query-server

Use new bridges from HSearch5, keeping the same behaviour (still not handling the NULL encoding)