Hello,
Compiled Ruby 3.2.2 on Windows with MSVC 2019 - Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64.

Code:
require 'win32/registry'
win_oracle_key = "SOFTWARE\\ORACLE"
reg=Win32::Registry::HKEY_LOCAL_MACHINE.open(win_oracle_key, Win32::Registry::KEY_ALL_ACCESS)
inst_loc_key = "inst_loc"
inv_dir="C:\\Program Files\\Tester\\Inventory"
reg[inst_loc_key] = inv_dir

....

Registry contains: C:\Program Files\Tester\Inventoryć´€
(Not sure what that character represents.)

Can the Ruby Dev Team please let me know how to resolve this issue so that this character does not get added to the string?

Thanks in advance.