Added code to escape and unEscape strings.