update controllers encoding