Add utils.escape
tests and fix unicode escaping
#2957
Merged
utils.escape
tests and fix unicode escaping
#2957