Fix PG bug. For some reason a '.' in the search query causes an error in PG. Gsub it for a space character