regedit: Convert parts of export handling to unicode.