RFC3986 standard compliant URI normalisation for PreferredClassProvider and policy file grants, including some additional fixes for Windows file path warts.