regedit: Correctly parse key name containing ']'.