fixed encoding of /query/:string