A forward slash can appear in query of a string, so find the start of a query first.