Add escape sequences to paths