Potatoes and avocados turn brown when peeled or cut because of oxidation. This is completely safe to eat but can affect their appearance.