add escape character to each backslash