Make sure fields are escaped & formatted correctly