Solve Exercise 3-2: escape/unescape