For really dirty or muddy water you need a pre-filter to remove the big chunks. I've used a bandana or the like.
For real expeditionary back country travel, I use an MSR Sweetwater. It's got a pre-filter. Very easy to clean the ceramic cartridge. On my bike rides, I'm using the MSR Micro flow...