Deal with non-ASCII characters on resolution info

The service name can include non-ASCII characters. So
NsdService need to have specific handling for these non-ASCII
characters that make resolution working properly.

Note: The unescape() method is the same one that was used in S,
but was removed by mistake.

Bug: 230698801
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I42fc5618aa2d549ceae25f516ad17c78930ea41d
(cherry picked from commit be186602f961768f3f2a237753c0f2cb8b4fdc2e)
Merged-In: I42fc5618aa2d549ceae25f516ad17c78930ea41d
1 file changed