Converted registry functions to unicode.