Fixed level encoding that was causing errors.