Configure encoding