do proper forward slash replacement when copying a file