Fixed backslash replacement by using `tr`