How to fix Unity Editor saving to Registry with PlayerPrefs and adding â... suffix to string

I was trying to save a file location as a PlayerPref in Unity version 2020.3.18 however, whenever I retrieved the string, it would look normal. When going into the registry however, the string would be saved with a weird suffix after the string inputted. Does anybody have a way around this?

Ex)

Entered as C:/Users/user/Documents/Folder

PlayerPrefs.SetString("FileLocation", "C:/Users/user/Documents/Folder");

Retrieved as C:/Users/user/Documents/Folder

string folderLocation = PlayerPrefs.GetString("FileLocation");

Debug.Log(folderLocation);

In the registry the FileLocation PlayerPref saves the string as: C:/Users/user/Documents/Folderâ…

Problem
The part I am wondering about is why it adds the â… suffix to the string. When I remove the â… part of the string from the registry manually, the entire program works again. I need a way to get the string and get the folder location.

It is likely saved in some encoded format since Unity probably has it as a null-terminated string in the C/C++ side of the engine, and perhaps the registry hive doesn’t allow that in strings.

Either way I could see that changing in the future and would consider the shape of that string to be a private contract between Unity and the registry hive storage system, not really intended for you to manipulate.