Fix registry parsing of strings to also support the windows method.