Fixed #19508 -- Implemented uri_to_iri as per RFC.
Revert "Fixed #19508 -- Implemented uri_to_iri as per RFC."

This reverts commit d0373f54302d8dfc7aaa4a1cd9c86e8b9a63b15d.
Revert "Revert "Fixed #19508 -- Implemented uri_to_iri as per RFC.""

This reverts commit 05e514ff1e135eaf0d8d3d93d3105db69022f3d6.
Changed tests