De-duplicate `string_to_winreg_bytes` function
De-duplicate `string_to_winreg_bytes` function

inejge/rustup.rs,inejge/rustup.rs,inejge/rustup.rs,rust-lang/rustup,rust-lang/rustup,nodakai/rustup.rs,rust-lang/rustup,rust-lang/rustup,inejge/rustup.rs,nodakai/rustup.rs,rust-lang/rustup,inejge/rustup.rs,nodakai/rustup.rs,nodakai/rustup.rs,nodakai/rustup.rs