More idiomatic way to juggle this
Add encoding param to filters