fixed the encoding parameter: it was passed as a Refine old-style argume...

...nt, but it's a new one