Revert "Fixed authority loosing encoding in case of registry based"

This reverts commit bf36435dec43c0f42caab22d4fdc366751a48f0b.

(tried to hide issue #498, it must be fixed at pdb level)