simplify reg-get-key-objattr
avoid unlikely overflow
improved copying of unicode strings and object attributes
introduce path-from-unicode-string
correctly fetch full path names