normalize URLs

Don't we require history for mercury to work? I think this might fall under the category of that recent email chain about 'crashing loudly and quickly' instead of causing silent errors.