getEncoder() shortened