MT#7271 fix uri creation

maybe related: MT#5615