Quote special characters when updating the path.