fixes escape sequences