"proper" fix for user/group name resolving.

Ticket: #5310