Nonlinear tricks for blocking wide band noise
A very common non-linear filtering technique for removing noise while preserving edges is median filtering. It basically replaces the samples inside a window by their median. Total variation denoising is another non-linear technique that works especially well for denoising piece-wise constant signals. You can find some more information about this method and Matlab software here.