Debugger: Fix reading of \x escape sequences in strings

Change-Id: Idfe41f6c2769397d6eee3ab74de4afbb94111e25
Reviewed-by: hjk <hjk121@nokiamail.com>
Debugger: Remove duplicated code

Change-Id: If95fc2b7869737224e5a39b3d32cd59afd5105ca
Reviewed-by: hjk <hjk121@nokiamail.com>