refactor getUniqueHandle and support intl chars