Thanks and appreciate, Marc for your response.
I was printing the content on the console using "p" and copying it to the file for comparison later (regression
test pack).
However, I noticed that if I use "puts" to print the content to be copied, it does not include these escape characters.
I have resolved it this way.
Thanks once again for your time.
Regards,
Amit