Escape backslashes correctly