Text this: Reconstruction of Piecewise Smooth Functions Based on Fourier Extension