as the "." is either navigation character ("./" or "../"), or prefix for an extension (.json), if part of the path name, it should be encoded:
https://localhost:randomPort/%2Ewell-known/assetslinks.json
also depending on the hosting env, the "." prefix for a path name typically means hidden.