Don't choke on requests for bad refs, handle trailing / in text url