Simultaneous Generation of UV Harmonics and Protons From a Thin-Foil Target With a High-Intensity Laser