Updated gems; try to avoid erroring out search on invalid characters