Only pass encoding if not binary