Cleanup the way the header generates URIs.