Due to exposing api of toSafeString, add coresponding testing for it. Bug: 119153962 Test: atest UriTest Change-Id: I156b2b03ee9c1d4a05ac635b4f684c5b4dcfca08