Encoding is already set up in line 114. Why this is repeated?