Fixed encoding on generated methods