Wouldn't it be better to first concat the profile path and filename using URIUtils::AddFileToFolder() and then convert from SmbToUnc ?

It seems error-prone to rely on SmbToUnc returning a path with a slash at end.