What about URL fragment/reference? AFAICT from javadocs getFile doesn't include fragment. Do we care? Probably not for proxy callback URLs but possibly for general case.