Correctly escape backslashes.